package com.qf.service.Impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qf.dao.appDao;
import com.qf.entity.AppC;
import com.qf.service.appService;
import com.qf.vo.PageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class appServiceImpl implements appService {
    @Autowired
    private appDao appdao;

    @Override
    public PageInfo<AppC> findAllApp(PageVo pageVo, AppC appC) {

        PageHelper.startPage(pageVo.getPage(),pageVo.getLimit());
        List<AppC> list=appdao.getAllApp(appC);

        return new PageInfo<>(list);


    }

    @Override
    public int insertCustomer(AppC appC) {
        return appdao.addAppC(appC);
    }
}
